package com.ty.day2;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/23 9:27
 */
public class SingleClass {
    private static SingleClass sc;
    private SingleClass(){}
    public static SingleClass getInstance(){
        if (sc==null){
            sc =new SingleClass();
        }
        return sc;
    }
}
